// Last Modified by winder on Nov. 17 2000
// wumu-yishu.c

#include <ansi.h>

inherit ITEM;
void init()
{
	add_action("do_du", "du");
}

void create()
{
	set_name( "「武穆遗书」", ({ "wumu yishu", "yishu" }));
	set_weight(200);
	if( clonep() )
		set_default_object(__FILE__);
	else {
		set("unit", "本");
		set("long",
			GRN
			"\n这就是岳武穆临死前留下的“破金要诀”。\n"
			"只见第一页上写了十八个大字：\n"
			"“重搜选，谨训习”\n"
			"“公赏罚，明号令”\n"
			"“严纪律，同甘苦”\n"NOR
		);
		set("value", 10000000);
		set("material", "paper");
		set("no_get", 1);
		set("no_drop", 1);
		set("treasure", 1);
	}
}

int do_du(string arg)
{
	object me = this_player();
//	object where = environment(me);
//	object ob;

	if (!id(arg)) return 0;
	if (!present(this_object(), this_player()))
		return 0;

//if( me->query("wumu+int")) 
	if ((int)this_player()->query("mark/+int")) 
	{
		write("这可真是一部兵法奇书呀！！！\n");
	}
	else
	{
		me->add("int", 1);
		write(HIY"你随手翻阅，但见一字一句之间，无不阐明临阵对敌的妙法，不禁大声赞叹！\n"NOR);
		write(HIR"你的悟性提高了！\n"NOR);
		this_player()->set("mark/+int", 1); 
	}
	return 1;
}